<%  
	var FSO=
	{
		createFolder:function($path,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));			
			
			if(FSO.isPath($path))
			{			
				var pathArray=$path.split('\\');
				var pathText='';				
				pathArray.map
				(
					function($v,$i)
					{
						pathText+=($v+'\\');
						if(tempObject.folderExists(pathText)==false){
							if($i!=0) tempObject.createFolder(pathText);	
						}
					}
				);
			}
			else
			{
				throw 'FSO Path Error';
			}		
			
			if($object==undefined) tempObject=null;
		},
		
		deleteFile:function($path,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));			
			
			tempObject.deleteFile($path);
			
			if($object==undefined) tempObject=null;
		},	
		deleteFolder:function($path,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));			
			
			tempObject.deleteFolder($path);
			
			if($object==undefined) tempObject=null;
		},
		
		fileCopy:function($source,$destination,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFile($source).Copy($destination,true);	
		
			if($object==undefined) tempObject=null;				
		},		
		folderCopy:function($source,$destination,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFolder($source).Copy($destination,true);	
		
			if($object==undefined) tempObject=null;				
		},	
		
		fileMove:function($source,$destination,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFile($source).Move($destination);	
		
			if($object==undefined) tempObject=null;			
		},
		folderMove:function($source,$destination,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFolder($source).Move($destination);	
		
			if($object==undefined) tempObject=null;			
		},	
		
		fileRename:function($path,$name,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFile($path).name=$name;	
		
			if($object==undefined) tempObject=null;
		},
		folderRename:function($path,$name,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
		
			tempObject.GetFolder($path).name=$name;	
		
			if($object==undefined) tempObject=null;			
		},			
		
		fileExists:function($path,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
			
			var tempBoolean=tempObject.FileExists($path);
				tempObject=null;
				
			if($object==undefined) tempObject=null;				
			return tempBoolean;
		},
		folderExists:function($path,$object)
		{
			var tempObject=($object!=undefined ? $object:Server.CreateObject('Scripting.FileSystemObject'));
			
			var tempBoolean=tempObject.FolderExists($path);
			
			if($object==undefined) tempObject=null;
			return tempBoolean;
		},
		
		isPath:function($path,$object)
		{
			return /[A-Za-z]\:\\[^\:\?\"\>\<\*]*/.test($path);
		},
		
		makeFileName:function()
		{
			return 456465654465;
		}
	};
%>